package com.example.xingxing.mobilesafe.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.example.xingxing.mobilesafe.R;

public class SplashActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        //等三秒自动跳转homeActivity
        try {
            Thread.sleep(3000);
        } catch (InterruptedException  e) {
            e.printStackTrace();
        } finally {
            startActivity(new Intent(this, HomeActivity.class));
            finish();
        }
    }
}
